package sogo.myi.micro.feign.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import sogo.myi.micro.feign.service.HelloWorldService;

@RestController
public class HelloController {

	@Resource
	private HelloWorldService helloWorldService;

	@RequestMapping(value = "/helloworld", method = RequestMethod.GET)
	public String sayHello() {
		return helloWorldService.sayHello();
	}
}
